home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / puppy_red.swf / scripts / frame_5 / DoAction_2.as next >
Text File  |  2008-03-11  |  1KB  |  51 lines

  1. _root.createEmptyMovieClip("itemOb",10);
  2. itemOb.uitem5 = uitem5;
  3. itemOb.gCode = gCode;
  4. itemOb.userkey = userkey;
  5. ii = 1;
  6. while(ii <= 5)
  7. {
  8.    if(_root["item" + ii] == 1)
  9.    {
  10.       isItem = 1;
  11.    }
  12.    ii++;
  13. }
  14. itemOb.loadVariables(itemURL,"POST");
  15. itemOb.onData = function()
  16. {
  17.    if(this.userTemp)
  18.    {
  19.       if(_root.isItem)
  20.       {
  21.          if(item1 && item2)
  22.          {
  23.             scItem = "\"∞▒á∞á╕ φè£δï¥, ∞£╡δï¿φÅ¡Ω▓⌐\"";
  24.          }
  25.          else if(item1)
  26.          {
  27.             scItem = "\"∞▒á∞á╕ φè£δï¥\"";
  28.          }
  29.          else if(item2)
  30.          {
  31.             scItem = "\"∞£╡δï¿φÅ¡Ω▓⌐\"";
  32.          }
  33.          getURL("javascript:item_use_chk_ok(" + scItem + ");","");
  34.          _root.isItem = 0;
  35.          _root.gotoAndStop("itemView");
  36.       }
  37.       else
  38.       {
  39.          getUrl("javascript:item_use_chk_ok(0);", "");
  40.          start = getTimer() / 1000;
  41.          scoretime = getTimer() / 1000;
  42.          _root.gotoAndStop("start");
  43.       }
  44.    }
  45.    else
  46.    {
  47.       getUrl("javascript:not_logon();", "");
  48.       _root.gotoAndStop("loading");
  49.    }
  50. };
  51.